package runesim.node.packethandler;
import org.apache.mina.common.IoSession;
import runesim.node.net.*;
import runesim.node.model.*;
public class WieldItem implements PacketHandler {
	
			@Override
			@SuppressWarnings("unused")
			public void handlePacket(Packet p, IoSession session) {
                Player player = (Player) session.getAttachment();
				
			    int id = p.readUnsignedWord();
				int slot = p.readUnsignedWordA();
				int frameID = p.readUnsignedWordA();
				
				player.getEquipment().wearSlot(id, slot);
			}
}